package cn.alpha.intell.rbtlib.view.widget.textview.view;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;

import cn.alpha.intell.rbtlib.view.widget.textview.view.base.BaseFontTextView;

/**
 * @author : jinlongfeng
 * @version : V2.0.1
 * @description:RegularFontTextView
 * @time : 16/9/12-19:43
 */
public class RegularFontTextView extends BaseFontTextView {

    public static Typeface sTypeFace;


    public RegularFontTextView(Context context) {
        this(context, null);
    }

    public RegularFontTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }


    @Override
    public Typeface getTypeFace() {
        if (sTypeFace == null) {
            sTypeFace = Typeface.createFromAsset(getContext().getAssets(), "fonts/NotoSansHans-Regular.otf");
        }
        return sTypeFace;
    }
}
